<template>
	<view class="useRight" @click.stop>
		<view class="userHeader" @click="gotoArtiter(userInfo.UserID)">
			<img :src="userInfo.WxHeadPic" alt="" />
		</view>
		<view class="userActIcon">
			<fui-icon name="like-fill" size="70" color="#FFF" />
			<view class="actext">671</view>
		</view>
		<view class="userActIcon" @click="upComment">
			<fui-icon name="comment-fill" size="70" color="#FFF" />
			<view class="actext">671</view>
		</view>
		<view class="userActIcon">
			<fui-icon name="star-fill" size="70" color="#FFF" />
			<view class="actext">671</view>
		</view>
		<view class="userActIcon">
			<fui-icon name="fabulous-fill" size="70" color="#FFF" />
			<view class="actext">671</view>
		</view>
		<view class="userActIcon">
			<fui-icon name="find-fill" size="70" color="#FFF" />
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			// 接收的内容数据
			userInfo: {
				type: Object,
				default: {},
			}
		},
		name: "Controls",
		data() {
			return {

			};
		},
		methods: {
			upComment() {
				this.$emit('upComment')
			},
			gotoArtiter(artisterID) {
				uni.navigateTo({
					url: '/artistesPages/pages/artister?artisterID=' + artisterID
				})
			},
		},
	}
</script>

<style lang="scss" scoped>
	.useRight {
		display: flex;
		align-items: center;
		flex-direction: column;
		position: absolute;
		width: 100rpx;
		right: 10rpx;
		z-index: 500;
		bottom: 50rpx;

		.userHeader {
			width: 100rpx;
			height: 100rpx;
			background-color: #CCC;
			border: 4rpx solid #FFF;
			border-radius: 100rpx;

			img {

				border-radius: 100%;
				height: 100%;
				width: 100%;
			}
		}

		.userActIcon {
			margin: auto;
			margin-top: 20rpx;
			text-align: center;

			.actext {
				color: #FFF;
				font-size: 30rpx
			}
		}
	}
</style>